import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.Button;

public class Test extends Application {
	public void start(Stage mainStage) {
		Button button=new Button("yeah!");
		Scene scene=new Scene(button,200,300);
		mainStage.setTitle("Hello world");
		mainStage.setScene(scene);
		mainStage.show();

		Button btn2=new Button("btn2");
		Scene scene2=new Scene(btn2);
		Stage stage2=new Stage();
		stage2.setTitle("stage2");
		stage2.setScene(scene2);
		stage2.show();
		stage2.setResizable(false);
	}
}
